#ifndef ALGORITHMEDITDIALOG_H
#define ALGORITHMEDITDIALOG_H

#include <QFile>
#include <QDialog>
#include <QMessageBox>

#include "task.h"
#include "algorithminputdialog.h"

extern QStringList OptimizationStrings;
extern QStringList AlgorithmStrings;
extern QList<Algorithm> algorithms;

namespace Ui {
    class AlgorithmEditDialog;
}

class AlgorithmEditDialog : public QDialog
{
    Q_OBJECT

public:
    explicit AlgorithmEditDialog(QWidget *parent = 0);
    ~AlgorithmEditDialog();

    void prepare();

private:
    Ui::AlgorithmEditDialog *ui;

    AlgorithmInputDialog *algorithmInputDialog;

private slots:
    void addAlgorithm();
    void deleteAlgorithm();
    void updateAndClose();
    void itemMade(Algorithm algorithm);
};

#endif // ALGORITHMEDITDIALOG_H
